package com.itheima.app.interceptor;


import com.itheima.domain.db.TanHua;

public class UserThreadLocal {
    //ThreadLocal 保证同一线程的数据共享
    private final static ThreadLocal<TanHua> LOCAL = new ThreadLocal<>();

    public static void set(TanHua tanHua){
        LOCAL.set(tanHua);
    }

    public static TanHua get(){
        return LOCAL.get();
    }
}

